package lijun;

public class Student extends Person{
    private String stuNo;

    public Student() {
        this.stuNo = "";
    }

    public Student(String name, String sex, int age, String stuNo) throws Exception {
        super(name, sex, age);
        this.stuNo = stuNo;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuNo='" + stuNo + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                '}';
    }
}
